package com.baor.dao;


import com.baor.domain.EquipmentHolder;
import com.baor.domain.HolderEquipmentVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HolderDao {

    /**
     * 根据持有人ID查询设备持有关系
     */
    List<EquipmentHolder> findEquipmentHoldersByHolderId(@Param("customerId") Integer customerId);

    /**
     * 查询持有人设备统计信息
     */
    List<HolderEquipmentVO> findHolderEquipmentStats(@Param("customerId") Integer customerId);
}